package com.dnjn.happiness.emo.api.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.annotation.Excel;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 快乐值日均对象 emo_avg_score_daily
 *
 * @author happiness
 * @date 2024-02-27
 */
@Schema(name = "EmoAvgScoreDaily", description = "快乐值日均")
@Accessors(chain = true)
@Getter
@Setter
@ToString
@TableName("emo_avg_score_daily")
public class EmoAvgScoreDaily extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * PK
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;


    

    /**
     * userId
     */
    @Schema(description = "userId")
//    @Excel(name = "userId", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /**
     * 姓名
     */
    @Schema(description = "姓名")
    @Excel(name = "姓名")
    private String nickName;

    /**
     * 工号
     */
    @Schema(description = "工号")
    @Excel(name = "工号")
    private String empno;

    /**
     * $column.columnComment
     */
    @Schema(description = "${comment}")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private LocalDate currDate;

    /**
     * 平均值
     */
    @Schema(description = "平均值")
    @Excel(name = "平均值")
    private BigDecimal scoreAvg;

    /**
     * 平均值波动
     */
    @Schema(description = "平均值波动")
    @Excel(name = "平均值波动")
    private BigDecimal scoreChanged;

    /**
     * 是否删除|0-否 1-是
     */
    private String deleted;
}
